package com.kgc.scd.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 * @author jiangguoqiang
 * @since 2022-11-15
 */
@Data
@TableName("shop_comment")
@ApiModel(value = "Comment对象", description = "")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    @ApiModelProperty("主键ID")
    private String id;

    @TableField("goods_id")
    @ApiModelProperty("商品ID")
    private Integer goodsId;

    /**
     * 评论
     */
    @ApiModelProperty("评论")
    @TableField("content")
    private String content;


    @TableField("user_id")
    @ApiModelProperty("用户ID")
    private Integer userId;

    /**
     * 追论
     */
    @ApiModelProperty("追论")
    @TableField("review")
    private String review;

    @TableField("creation_time_content")
    @ApiModelProperty(value = "评论时间",dataType = "date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date creationTimeContent;

    @TableField("creation_time_review")
    @ApiModelProperty(value = "追加评论时间",dataType = "date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date creationTimeReview;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    @TableField("order_id")
    private String orderId;


}